<template>
  <div class="products">
     <BsSubmenu :subMenus="subMenus" />
     <!-- banner -->
    <section class="banner">
      <div class="hd text-center">
        <div class="f20 title">应用市场</div>
      </div>
    </section>
    <div class="bar">
      <div class="hd clearfix">
        
        
      </div>
    </div>
    
    <ul class="product hd clearfix mt20">
      <li v-for="i in 12" :key="i">
        <img src="../assets/images/markets/wx1.png" alt="">
        <div class="cover">
          <div class="f20">云培训通用版</div>
          <div class="f20 mt10">¥8800</div>
          <p class="mt20 text-center">
            <a href="#" class="btn btn-1">了解详情</a>
          </p>
           <p class="mt10 text-center">
            <a href="#" class="btn btn-2" @click.prevent="gotoBuy">立即购买</a>
          </p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
import BsSubmenu from '@/components/BsSubmenu'

export default {
  components: {BsSubmenu},
  data (){
    return {
      subMenus: [
        {title: '全部类', link:'#', active: true},
        {title: '软件类产品', link:'#', active: false},
        {title: '硬件类产品', link:'#', active: false},
      ]
    }
  },
  methods:{
    gotoBuy() {
      this.$router.push('/admin/agent/productBuy?id=103232')
    }
  }
}
</script>

<style lang="less" scoped>
.products{
  padding: 0;
}
.banner{
  color: #fff;
  background: url(../assets/images/products/armchairs-blur-chair-296883.png) no-repeat center center;
  height: 210px;
  line-height: 210px;
  .hd{
    .f20{
      color: #137ee8;
      font-weight: 800;
    }
  }
}
.product {
  margin-top: 40px;
  li{
    float: left;
    width: 29%;
    margin-right: 4.33%;
    margin-bottom: 4.33%;
    height: 180px;
    position: relative;
    padding-right:140px;
    img{
      width: 100%;
      height: 100%;
    }
    .cover{
      position: absolute;
      width: 140px;
      padding: 10px;
      top: 0;
      bottom: 0;
      right: 0;
      background: #3f4041;
      color: #fff;
      .btn{
        display: inline-block;
        padding: 6px 20px;
        color: #fff;
        font-size: 14px;
        &.btn-1{
          background: #147de5;
        }
        &.btn-2{
          border:1px solid #fff;;
        }
      }
    }
  }
}

.bar{
  background: #404040;
  line-height: 44px;
  
}
.bar-menu{
  a{
    margin-right: 10px;
    &.active{
      color: #147de5;
    }
  }
}

</style>
